home *** CD-ROM | disk | FTP | other *** search
/ MacUser Mac Bin 40 / MACUSER-MACBIN40A-1997-03.ISO.7z / MACUSER-MACBIN40A-1997-03.ISO / from Apple / MRJ 1.0 Installer / MRJ Readme < prev   
Text File  |  1997-01-22  |  14KB  |  167 lines

  1. ð
  2. About Mac OS Runtime for Javaェ
  3.  
  4.  
  5.  
  6.  
  7. Introduction
  8. Mac OS Runtime for Javaェ (MRJ) is Appleユs implementation of the Java runtime environment based on technology from Sun Microsystems, Inc. MRJ allows Java functionality to be embedded in Mac OS applications. Applications that use this functionality will be able to run Java applets and applications.
  9.  
  10. MRJ 1.0 implements version 1.0.2 of the Java runtime.
  11.  
  12. MRJ 1.0 includes Apple Applet Runner, a stand-alone application which allows you to run Java applets, and Apple Applet Viewer, an OpenDoc viewer that allows you to incorporate Java applets into OpenDocェ documents. The Applets menu in Apple Applet Runner includes a set of applets provided by Sun Microsystems, Inc. These applets were not created by Apple Computer, Inc. and may not follow Apple guidelines for user interaction. For example, buttons in an applet may have different behavior from buttons in applications developed specifically for the Mac OS.
  13.  
  14. A software development kit (SDK) is available for MRJ. The MRJ SDK includes interfaces to the runtime environment that allow software developers to:
  15.  
  16. ・ Enable a Macintosh application to run Java applets and applications
  17. ・ Access the Java runtime from a Macintosh application
  18. ・ Call Java methods from C and C++
  19. ・ Call native methods from Java
  20. ・ Build stand-alone Java applications
  21.  
  22. The SDK also includes a utility to run Java applications.
  23.  
  24. See our website at <http://devtools.apple.com/mrj/> to get the MRJ SDK.
  25.  
  26.  
  27. System Requirements
  28. This release of Mac OS Runtime for Javaェ is designed to work on Mac OS-compatible computers with a PowerPC microprocessor. Mac OS Runtime for Java is supported on System 7.5 or later and requires a minimum of 8 MB of RAM (16 MB is strongly recommended) and approximately 7 MB of free disk space. Future versions of MRJ will support System 7.1.1 and later.
  29.  
  30. The Apple Applet Viewer requires OpenDoc 1.0.4 or later. To get OpenDoc, see the OpenDoc web page at <http://www.opendoc.apple.com/>.
  31.  
  32. Running applets over the Internet requires MacTCP 2.0.4 or later, or OpenTransport 1.1 or later with TCP/IP, and an active Internet connection.
  33.  
  34. Cyberdog 2.0 and later will be compatible with MRJ and the Apple Applet Viewer. Cyberdog 2.0 requires OpenDoc 1.1 or later. See the Cyberdog web page at <http://www.cyberdog.apple.com/> for more information.
  35.  
  36. The MRJ system software components use approximately 3 MB of disk space when installed, and 1 MB of RAM when active (additional RAM is required for Java classes, and for images or sounds used by Java applets or applications).
  37.  
  38. The Mac OS Runtime for Javaェ and the Apple Applet Runner do not require OpenDoc.
  39.  
  40.  
  41. 68K Macintosh Users
  42. This release of Mac OS Runtime for Javaェ only supports Mac OS-compatible computers with a PowerPC microprocessor. A version which supports the 68K (non PowerPC) Macintosh is nearing completion and will be released in the future. A pre-release version of Mac OS Runtime for Java for 68K can be downloaded from our website <http://devtools.apple.com/mrj/>.
  43.  
  44.  
  45. Whatユs Installed with MRJ
  46. The MRJ installer places the required software components in your System Folder. The installer does not force you to restart your computer, but you must restart before using MRJ.
  47.  
  48. Warning: If you have already installed a pre-release version of MRJ, you need to remove the previous version by hand before installing MRJ. Please see the list below for the files to remove from your hard drive. Combining pre-release components of MRJ with the released version can give unpredictable results.
  49.  
  50. MRJ 1.0 installs:
  51. ・ Mac OS Runtime for Javaェ folder at the root of the startup disk
  52. ・ MRJ Libraries folder in the Extensions folder of the active System Folder
  53. ・ Text Encoding Converter in the Extensions folder of the active System Folder
  54. ・ Text Encodings folder in the active System Folder
  55.  
  56. If you have OpenDoc installed, MRJ also installs:
  57. ・ Apple Applet Viewer Libraries in the Editors folder of the active System Folder
  58. ・ Apple Applet Viewer Stationery in the Stationery folder at the root of the startup disk
  59.  
  60. Running the Apple Applet Runner produces a preferences file named メApple Applet Runner Prefsモ in the Preferences folder of the active System Folder. In pre-release version of MRJ, the preferences file was named メApplet Runner Prefsモ. If you had a pre-release version of MRJ installed, make sure you throw the メApplet Runner Prefsモ file away. (The old file may conflict with preference files created by applet runner applications from other companies.)
  61.  
  62. Text Encoding Converter and Text Encodings may have been installed on your machine by other software installations. When removing MRJ from your system, make sure you donユt remove these files.
  63.  
  64.  
  65. Description of MRJ Components
  66. MRJ consists of the system components necessary for Java, and two demonstration tools that use these components to run Java applets.
  67.  
  68. Note: The MRJ SDK, a separate package (see <http://devtools.apple.com/mrj/> to download the package), comes with tools that let you run Java applications as well. See the MRJ SDK for more information.
  69.  
  70. System Components
  71. The MRJ installer puts a folder named メMRJ Librariesモ in the Extensions folder of the active System Folder. This folder contains two items necessary for Java support: MRJLib and the MRJClasses folder (see メTipsモ below to learn how to use this folder to add items to your classpath).
  72.  
  73. Apple Applet Runner
  74. Apple Applet Runner lets you run Java applets from your local disk. You can also run Java applets over the Internet, provided you have MacTCP or Open Transport installed and have an active Internet connection. Apple Applet Runner does not require OpenDoc.
  75.  
  76. You can open URLs or local HTML files containing <applet> tags from the File menu. In addition, you can drop HTML files containing <applet> tags onto the Apple Applet Runner application icon from the Finder.
  77.  
  78. Apple Applet Runner remembers URLs of remote (メhttp://ノモ) or local (メfile:///ノモ) applets. This information is stored in the メApple Applet Runner Prefsモ file in the Preferences folder of the active System Folder. Sample URLs are provided. Demonstration applets from the Sun 1.0.2 Java Development Kit (JDK) for Mac OS are also provided in the MRJ folder.
  79.  
  80. Apple Applet Viewer (for OpenDoc)
  81. Apple Applet Viewer is an OpenDoc viewer that lets you incorporate Java applets into your OpenDoc documents.
  82.  
  83. Apple Applet Viewer requires OpenDoc 1.0.4 or later. A folder called メApple Applet Viewerモ is installed in your Editors folder and the Apple Applet Viewer Stationery file is installed in your Stationery folder. The stationery file can be used with other OpenDoc documents. Refer to your OpenDoc documentation for additional information.
  84.  
  85. You can drag and drop two types of applet specifiers onto an Apple Applet Viewer frame within an OpenDoc document: 1) a text string containing a URL for an html document that contains the applet tag, or 2) a Finder icon for an html file containing an applet tag.
  86.  
  87.  
  88. Further Information and Reporting Problems
  89. Connect to our website at
  90.  
  91.      <http://devtools.apple.com/mrj/>
  92.  
  93. to find out about future releases of the Mac OS Runtime for Java or get information on how to report problems with the software.
  94.  
  95.  
  96. Other Applets on the Internet
  97. There are thousands of applets available on the Internet. Two good starting points for finding applets are:
  98.  
  99.      <http://www.javasoft.com/>
  100.  
  101. and
  102.  
  103.      <http://www.gamelan.com/>
  104.  
  105.  
  106. Tips for Using MRJ
  107.  
  108. OpenDoc
  109. If you do not have OpenDoc installed at the time you install MRJ, the editor and stationery files will not be installed. If you later install OpenDoc, you must reinstall MRJ to use the editor and stationery files.
  110.  
  111. Extending the Classpath
  112. Some applets may need access to classes that are not in the same directory as the applet tag. To allow additional Java classes or zip files to be referenced by MRJ when running an applet, do one of two things:
  113.     ミ Add a codebase parameter to the applet tag. This technique can be used when the classes
  114.        are either on your disk or on the Internet. Add a parameter of the form
  115.        メcodebase=file:///mydisk/myfolder/myzip.zipモ (for classes on your disk) or
  116.        メcodebase=http://hostname/dirname/theirzip.zipモ (for classes on the Internet)
  117.        to the applet tag that is in the .html file you open with Apple Applet Runner or
  118.        Apple Applet Viewer. See general Java and html references for more details on
  119.        the applet tag format and the codebase parameter.
  120.     ミ Add an alias to the MRJClasses folder. This technique is useful when you have a
  121.        local copy of a .zip file, or a folder with a collection of Java classes, on your disk.
  122.        If the item you wish to add is a .zip file or a collection of .class files, you can add
  123.        the aliases directly. Put an alias to the item (.zip file or folder) into the MRJ Classes
  124.        folder in the Extensions folder in the active System Folder. To add a single class
  125.        file to the classpath, make an alias to the folder containing the class file and
  126.        put that alias into the MRJ Classes folder.
  127.  
  128. Note: Currently, any MRJ runners or viewers that are open will have to be quit and relaunched for the new classes to be recognized.
  129.  
  130. Memory Usage
  131. MRJ uses System memory when running. Applications allocate their own application memory when launched, leaving less memory available to the System, so if you have allocated a large partition to the Apple Applet Runner, Cyberdog, or another application that utilizes MRJ you may have trouble running large Java applets or applications. If you encounter problems running large applets or applications, try quitting any unneeded applications that are running. If you still cannot run the applet or application, use the メGet Infoモ window for your application to choose a smaller number in the Preferred Size field for Memory Requirements. Do not set the Preferred Size smaller than the Minimum Size shown for that application.
  132.  
  133.  
  134. Known Problems
  135.  
  136. ・  MRJ installs the Text Encoding Converter in your Extensions folder in order to run. To enable the Text Encoding Converter, you must restart your computer before using MRJ. If you attempt to run MRJ without restarting, or if you remove the enabler or disable the extension using the Extensions Manager or another mechanism, MRJ may behave in unexpected ways.
  137.  
  138. ・ Do not remove the Text Encodings folder from the System Folder. Text Encodings are needed for text support in MRJ. Removing this folder may result in incorrect behavior when running MRJ.
  139.  
  140. ・ There is a known problem with the PPCExceptionEnabler extension. This extension is installed by Macintosh Common Lisp (MCL) 3.9. If you have this extension, you must remove it before running MRJ. Future versions of MCL will not require this extension.
  141.  
  142. ・ There are known problems with some applets when using MRJ with Microsoft Internet Explorer, including display problems, sound problems and possible crashes. We are working with Microsoft to resolve these problems in a future release of Internet Explorer.
  143.  
  144. ・ If you are running applications or applets compiled with the JavaSoft 1.0.2 JDK release for Macintosh, you may encounter numerics-related problems. Specifically, floating-point constants (and in some cases computed integer constants) may not be accurate. Any Java virtual machine will encounter these same problems, but we believe these cases to be rare. If possible, use another Java compiler to recompile any applications or applets displaying this problem.
  145.  
  146. ・ With some applets that load large (or many) images or sounds, there may not be enough RAM free to load all the images and sounds. You may be able to free up enough RAM by quitting all applications (such as the Apple Applet Runner and Apple Applet Viewer) that use MRJ. If necessary, try quitting other applications as well. After quitting the applications, try relaunching Apple Applet Runner or Apple Applet Viewer.
  147.  
  148. ・ Some Java applets (such as Clock) or applications that are processor intensive may not give up time to other applets, resulting in other applets opening slowly, running slowly, or failing to open or run. To improve performance, try closing applets or applications that you are not using.
  149.  
  150. ・ The OpenDoc-based Apple Applet Viewer does not have a mechanism to report some types of failures. If an applet does not load in Apple Applet Viewer, try the applet under Apple Applet Runner to see if an error message was generated.
  151.  
  152. ・ This release of MRJ supports System 7.5 and later. A release with support for System 7.1.1 and later, which will also include support for 68K-based Macintoshes, is under development. Please check the website at <http://devtools.apple.com/mrj/> for the latest information, and for beta versions of future releases.
  153.  
  154. ・ In Apple Applet Runner, the Applet menu should not be used while the Properties dialog is on the screen. Using the Applet menu while the Properties dialog is open may crash Apple Applet Runner.
  155.  
  156.  
  157. Java not Fault-tolerant
  158. The Java technology is not fault-tolerant and is not designed, manufactured or intended for use or resale as on-line control equipment in the operation of nuclear facilities, aircraft navigation or communication systems, or air traffic control machines in which the failure of the Java technology or Mac OS Runtime for Java could lead directly to death, personal injury, or severe physical or environmental damage.
  159.  
  160.  
  161. ゥ 1996-1997 Apple Computer. Inc. All rights reserved. 
  162. Apple, the Apple logo, LaserWriter, MacTCP, Power Macintosh, Mac, and Macintosh are trademarks of Apple Computer, Inc., registered in the U.S. and other countries. PowerPC is a trademark of International Business Machines Corporation, used under license therefrom. Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All other product names are trademarks or registered trademarks of their respective holders. Mention of non-Apple products is for information purposes and constitutes neither an endorsement nor a recommendation. Apple assumes no responsibility with regard to the selection, performance, or use of these products.
  163.  
  164. Updated January 22, 1997
  165.  
  166. 202